﻿@model GuestRegisterModel
@{
    ResLink.AddCss("~/res/css/guest.css");
}

<h1>회원가입</h1>
<hr />
    
<form id="회원가입">
    <div>아이디</div>
    <input name="@Html.NameFor(m => m.로그인ID)" type="text" data-lsj-focus="true" data-lsj-validate="required"  />

    <div>비밀번호</div>
    <input name="@Html.NameFor(m => m.비밀번호1)" type="password" data-lsj-validate="required"  />

    <div>비밀번호 확인</div>
    <input name="@Html.NameFor(m => m.비밀번호2)" type="password" data-lsj-validate="required"  />

    <div>이름</div>
    <input name="@Html.NameFor(m => m.이름)" type="text" data-lsj-validate="required"  />

    <div>이메일</div>
    <input name="@Html.NameFor(m => m.이메일)" type="text" data-lsj-validate="required"  />

    <div>
        <a onclick="회원가입()" class="btn btn-primary">회원가입</a>
    </div>
</form>

<div class="help">
    <div><i class="icon-info-sign"></i> 도움말</div>
    <ul>
        <li>비밀번호는 암호화되어 저장됩니다.</li>
        <li>비밀번호를 분실하여 임시 비밀번호를 전송할 때 이메일 주소가 필요합니다.</li>
    </ul>
</div>

<script type="text/javascript">
    function 회원가입() {
        AjaxPostForm($("form#회원가입"), '@Url.MyAction("Register", "Guest")');
    }
</script>